<?php
    include('header.php');
    include('submenu.php');
    
    $msg = array();
    $sql = "SELECT td_th FROM text_data WHERE td_id=16 ORDER BY td_id";
    $result = $db->Execute($sql);
    $i = 0;
    while (!$result->EOF)
    {
        $msg[$i]['th'] = $result->fields['td_th'];
        $i++;
        $result->MoveNext();
    }
    $result->Close();
?>
    <div class="grid_18" id="contents">
        
        <div id="contents_">
            <form action="?m=main&s=slide_bottom_msg_query" method="post">
            <div id="about_us_company_msg_1_en" class="form_field">
                <p>ข้อความ : </p>
                <textarea class="styled_textarea large" name="msg_1"><?php echo $msg[0]['th']; ?></textarea>
            </div>
            
            <div id="about_us_company_msg_2_en" class="form_field">
                <button class="button">SAVE</button>
            </div>
            </form>
        </div>
        
    </div><!-- end .grid_18 -->
    <div class="clear">&nbsp;</div>
<?php
    include('footer.php');
?>